package cn.maihe.elg.operation.model.enums;

/***
 * 状态（0-待审核 1-审核通过 2-审核驳回
 */
public enum StatusEnum {
    /**
     * 隐藏
     */
    AUDIT_HIDDEN("0", "隐藏"),

    /**
     * 显示
     */
    AUDIT_SHOW("1", "显示");


    private String value;
    private String label;

    StatusEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }
    public static boolean contains(String type){
        for(StatusEnum typeEnum : StatusEnum.values()){
            if(typeEnum.value.equals(type)){
                return true;
            }
        }
        return false;
    }
    public static String getValue(String type){
        for(StatusEnum typeEnum : StatusEnum.values()){
            if(typeEnum.value.equals(type)){
                return typeEnum.label;
            }
        }
        return "";
    }
    public String getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }
}
